<?php
namespace App\Controllers\Home\Page;

use \App\Models\Diary\Diary;

class Send extends \App\Libs\Base\BaseTwigAction
{
    protected function beforeRun() {
        parent::beforeRun();
       // $this->needLogin = TRUE;
    }
	
	public function execute(){
		$did = $this->request->get('id');
		$diary = Diary::find(array(
			'id = :did:',
			'bind'=>array( 'did' => $did )
		));
		
		$this->addParams('diary',$diary);
		
		return parent::execute();
		
	}
}
